libxl: synchronize device removal when using driver domains
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 27 Sep 2013 09:37:04 +0000 (11:37 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 18 Nov 2013 17:08:56 +0000 (17:08 +0000)
commitf36df037ba8813207275b7094966436fcbb30060
treec0450a3ed8c34da9b7d191518a49c9584edf0262
parent51e20c55808cfe3e51b45f6ff2a45775170fa5e4
libxl: synchronize device removal when using driver domains

Synchronize the clean up of the backend from the toolstack domain when
the driver domain has actually finished closing the backend for the
device.

This is accomplished by waiting for the driver domain to  remove the
directory containing the backend keys, then the toolstack domain will
finish the cleanup by removing the empty folders on the backend path.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h